package cn.wolfcode.trip.base.mapper;

import cn.wolfcode.trip.base.domain.StrategyReplyUserComment;
import cn.wolfcode.trip.base.domain.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface StrategyReplyUserCommentMapper {
    int deleteByPrimaryKey(Long id);

    int insert(StrategyReplyUserComment entity);

    StrategyReplyUserComment selectByPrimaryKey(Long id);

    List<StrategyReplyUserComment> selectAll();

    int updateByPrimaryKey(StrategyReplyUserComment entity);

    /**lituan
     * 不要用
     */
    void selectByStrategyUserComment();

    int selectTotalCountForUnreadComment(User currentUser);

    List<StrategyReplyUserComment> selectReply(@Param("uid") Long uid, @Param("read") Boolean read);

    void updataRead( Long replyId);
}